{ext->class_function class="shop" assign="is_shop"}
{if $is_shop == 1}
{ext->class_function class="shop" func="get_all_product_groups" assign="groups_list"}
{if $smarty.get.type_of_product}
	{ext->class_function class="shop" func="get_all_product_groups_one_product_type" groups=$groups_list type=$smarty.get.type_of_product assign="groups_list2"}
	{assign var="groups_list" value=$groups_list2}
{/if}
	{include file="admin/modules/shop/tabs.html"}
	{if !$smarty.get.product_id && $smarty.get.tpl_shop_module!='import' && $smarty.get.tpl_shop_module!='curency' && $smarty.get.tpl_shop_module!='off'  && $smarty.get.tpl_shop_module!='off_edit'}	
		{include file="admin/modules/shop/search_field.html"}
	{/if}
	<table width="100%" cellpadding="0" cellspacing="0" border="6" bordercolor="#DBE1E5" bgcolor="#DBE1E5">
		<tr>
			<td>				
	{if $smarty.get.tpl_shop_module=='goods'}
		{if $smarty.get.page}{assign var="page" value=$smarty.get.page}{else}{assign var="page" value="1"}{/if}
		{if $smarty.get.soft_by_name}
			{ext->class_function class="shop" func="get_all_products_by_group_name_only" sort=$smarty.get.soft_by_name group_id=$smarty.get.group_id hide=1 curent_page=$page assign="groups_list"}
		{else}
			{ext->class_function class="shop" func="get_all_products_by_group_name_only" group_id=$smarty.get.group_id hide=1 curent_page=$page assign="groups_list"}
		{/if}	
		{include file="admin/modules/shop/menu_goods.html"}
	{elseif  $smarty.get.tpl_shop_module=='groups' || !$smarty.get.tpl_shop_module}
		{include file="admin/modules/shop/menu_groups.html"}	
	{elseif  $smarty.get.tpl_shop_module=='off'}
		{ext->class_function class="shop" module="off" assign="is_module"}
		{if $is_module == 1}
			{include file="admin/modules/shop/off/menu_off.html"}	
		{/if}
	{/if}
	{if $smarty.get.tpl_shop_module=='goods'}
		{include file="admin/modules/shop/list_goods.html"}			
	{elseif $smarty.get.tpl_shop_module=='groups' || !$smarty.get.tpl_shop_module}
		{include file="admin/modules/shop/list_groups.html"}
	{elseif $smarty.get.tpl_shop_module=='search'}
		{include file="admin/modules/shop/search_goods.html"}
	{elseif $smarty.get.tpl_shop_module=='product'}
		{include file="admin/modules/shop/edit_goods.html"}
	{elseif $smarty.get.tpl_shop_module=='import'}
		{ext->class_function class="import" assign="is_module"}
		{if $is_module == 1}
			{include file="admin/modules/shop/import.html"}
		{/if}
	{elseif $smarty.get.tpl_shop_module=='curency'}
		{ext->class_function class="shop" module="curency" assign="is_module"}
		{if $is_module == 1}
			{include file="admin/modules/shop/curency.html"}
		{/if}
	{elseif $smarty.get.tpl_shop_module=='off'}
		{ext->class_function class="shop" module="off" assign="is_module"}
		{if $is_module == 1}
			{include file="admin/modules/shop/off/off.html"}
		{/if}
	{elseif $smarty.get.tpl_shop_module=='off_edit'}
		{ext->class_function class="shop" module="off" assign="is_module"}
		{if $is_module == 1}
			{include file="admin/modules/shop/off/off_edit.html"}
		{/if}
	{/if}
	{if  $smarty.get.tpl_shop_module=='goods'}
		{include file="admin/modules/shop/menu_goods.html"}
	{elseif  $smarty.get.tpl_shop_module=='groups' || !$smarty.get.tpl_shop_module}
		{include file="admin/modules/shop/menu_groups.html"}	
	{elseif  $smarty.get.tpl_shop_module=='off'}
		{ext->class_function class="shop" module="off" assign="is_module"}
		{if $is_module == 1}
			{include file="admin/modules/shop/off/menu_off.html"}	
		{/if}
	{/if}
			</td>		
		</tr>
	</table>
{/if}
